<?php
include("connection/connection.php");
$reserv_id=$_REQUEST['var'];
$str=$_REQUEST['str'];
$reference_id=$_REQUEST['referenceId'];
$qrSource="select * from tbl_dtls_q1_reserv where id='$reserv_id' and reserv_id LIKE '$str%' order by 0+replace(reserv_id,'Sub','')";
		$resSource=mysql_query($qrSource);
		mysql_affected_rows();
		$rowSource=mysql_fetch_array($resSource);
?>
<script type="text/javascript" src="js/jquery.js"></script>
 <div class="section_format">
  <form action="reservrwss_edit.php" method="post" name="sec5" id="sec5" onSubmit="return sec6_val();" >
  <input type="hidden" id="reserv_id" name="reserv_id" value="<?php echo $reserv_id; ?>"><input type="hidden" id="str" name="str" value="<?php echo $str; ?>">
  <div style="height:30px" align="center"><?php echo $reference_id;?></div>
  <table border="1">
    
    <tr>
      <td colspan="2" bgcolor="#CCCCCC">&nbsp;<b><?php echo $str;?></b></td>
      </tr>
   
      <tr>
        <td>&nbsp;<b>Location</b></td>
        <td>&nbsp;
            <input type="text" name="Location" id="Location" value="<?php echo $rowSource['reserv_location']; ?>"  />         </td>
      </tr>
      <tr>
        <td>&nbsp;<b>Longitude</b></td>
        <td>&nbsp;
            <input type="text" name="Longitude" id="Longitude" value="<?php echo $rowSource['reserv_latitude']; ?>" onBlur="float1(this,67,80);" /></td>
      </tr>
      <tr>
        <td>&nbsp;<b>Latitude</b></td>
        <td>&nbsp;
            <input type="text" name="Latitude" id="Latitude" value="<?php echo $rowSource['reserv_longitude']; ?>" onBlur="float1(this,20,32);" /></td>
      </tr>
	    <tr>
      <td>&nbsp;<b>Capacity(kl)</b></td>
      <td>&nbsp;
	        <input type="text" name="cap" id="cap" value="<?php echo $rowSource['reserv_cap']; ?>" onBlur="int(this);" /></td>
      </tr>
	  <tr>
      <td>&nbsp;<b>In SC/ST Bastis</b></td>
      <td>&nbsp;<input type="radio" name="scst" value="yes" <?php if($rowSource['reserv_scst']=="yes") echo "checked= \" checked \" "; ?>/>Yes&nbsp;&nbsp;<input type="radio" name="scst" value="no" <?php if($rowSource['reserv_scst']!="yes") echo "checked= \" checked \" "; ?> />No</td>
      </tr>
       </tr>
	   <!--
	    <tr bgcolor="#999999">
	    <td colspan="2"><b>Water Quality Parameter</b></td>
      </tr> 

      <tr>
        <td>&nbsp;<b>pH</b></td>
	    <td>&nbsp;
	        <input type="text" name="pH" id="pH" value="<?php echo $rowSource['reserv_ph']; ?>" /></td>
      </tr>
	  <tr>
        <td>&nbsp;<b>TDS (mg/l)</b></td>
	    <td>&nbsp;
	        <input type="text" name="TDS" id="TDS" value="<?php echo $rowSource['reserv_tds']; ?>" /></td>
      </tr>
	  <tr>
        <td>&nbsp;<b>cl (mg/l)</b></td>
	    <td>&nbsp;
	        <input type="text" name="cl" id="cl" value="<?php echo $rowSource['reserv_cl']; ?>" /></td>
      </tr>
	  <tr>
        <td>&nbsp;<b>F (mg/l)</b></td>
	    <td>&nbsp;
	        <input type="text" name="F" id="F" value="<?php echo $rowSource['reserv_f']; ?>" /></td>
      </tr>
	  <tr>
        <td>&nbsp;<b>NO<sub>3</sub> (mg/l)</b></td>
	    <td>&nbsp;
	        <input type="text" name="no3" id="no3" value="<?php echo $rowSource['reserv_no3']; ?>" /></td>
      </tr>
	  -->
	  <tr>
	    <td colspan="2" align="center"><input type="submit" value="EDIT" name="submit" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px; font-weight:bold; background:#666666; color:#FFFFFF; width:140px; height:30px" onClick="view_validate()"></td>
  </tr>
  </table>
  </form>
  </div>